package com.jack.design_patterns.structural.decorator.schoolgrade_demo;

public class Father {

    public static void main(String[] args) {
        // 原来的成绩单
        SchoolReport schoolReport = new FourthGradeSchoolReport();
        // 加了最高分说明的成绩单
        schoolReport = new HighScoreDecorator(schoolReport);
        // 加了班级排名说明的成绩单
        schoolReport = new SortedDecorator(schoolReport);
        // 展示成绩单
        schoolReport.report();
        // 签名成功
        schoolReport.sign("李xx");
    }
}
